//
//  RectBody.h
//  NinjaTurtle
//
//  Created by Nguyen Tri Chung on 1/27/15.
//
//

#ifndef __NinjaTurtle__RectBody__
#define __NinjaTurtle__RectBody__

#include <stdio.h>
#include "cocos2d.h"
#include "Body.h"

class RectBody : public Body {
    CC_SYNTHESIZE(bool, platform, Platform);
    CC_SYNTHESIZE(float, beltSpeed, BeltSpeed);
protected:
    float width;
    float height;
public:
    RectBody(float width, float height);
    virtual ~RectBody();
    virtual bool contains(Point point);
    bool containsInDistance(Point point, float distanceRate);
    float getWidth();
    float getHeight();
    void setWidth(float width);
    void setHeight(float height);
    void setContentSize(float width, float height);
};

#endif /* defined(__NinjaTurtle__RectBody__) */
